#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <loginwidget.h>
#include <userwidget.h>
#include <adminwidget.h>
#include <clienttcp.h>
#include <userwidget.h>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow {
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void onLoginUserSuccess();
    void onLoginAdminSuccess();

private:
    Ui::MainWindow *ui;
    LoginWidget *m_pLogin;
    UserWidget *m_pUser;
    AdminWidget *m_pAdmin;
    ClientTcp *clientTcp;
};
#endif // MAINWINDOW_H
